package com.code260.ss.guice.demo.bill;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class NotOnWeekendsInterceptor implements MethodInterceptor {
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("do something before NotOnWeekendsInterceptor invoke");
        Object result =  methodInvocation.proceed();
        System.out.println("do something after NotOnWeekendsInterceptor invoke");
        return result;
    }
}
